<?php

namespace Yon\fi;

use Yon\Lib\Base;
use Yon\Lib\Tools;

class Fundpayment extends Base {

    /**
     * 资金付款单单个保存
     * @return void
     */
    public function save($data){
        $url = "/yonbip/fi/fundpayment/save?access_token=ACCESS_TOKEN";
        $this->registerApi($url, func_get_args());
        $body = json_encode(['data' => $data],JSON_UNESCAPED_UNICODE);
        $options['headers'][] = "Content-Type:application/json";
        return Tools::json2arr(Tools::post($url,$body,$options));
    }

}